package com.marion.study.config;

import com.marion.study.model.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * 配置类
 * APP不同环境配置
 */
@Configuration
public class AppConfig {

    @Bean
    public User user() {
        User user = new User();
        user.setId(1);
        user.setName("张三");
        user.setAge(18);

        User user1 = User.builder()
                .id(2)
                .name("李四")
                .age(18)
                .build();
        return user;
    }


}
